<template>
    <div>
        <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://gitee.com/uploads/91/465191_vsdeveloper.jpg?1437703838">
						<div class="mui-media-body">
							<h1>木屋</h1>
							<p class='mui-ellipsis'>
                                <span>2018年7月22日 5:06:34</span>
                                <span>点击0次</span>
                                </p>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://gitee.com/uploads/91/465191_vsdeveloper.jpg?1437703838">
						<div class="mui-media-body">
							<h1>木屋</h1>
							<p class='mui-ellipsis'>
                                <span>2018年7月22日 5:06:34</span>
                                <span>点击0次</span>
                                </p>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://gitee.com/uploads/91/465191_vsdeveloper.jpg?1437703838">
						<div class="mui-media-body">
							<h1>木屋</h1>
							<p class='mui-ellipsis'>
                                <span>2018年7月22日 5:06:34</span>
                                <span>点击0次</span>
                                </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://gitee.com/uploads/91/465191_vsdeveloper.jpg?1437703838">
						<div class="mui-media-body">
							<h1>木屋</h1>
							<p class='mui-ellipsis'>
                                <span>2018年7月22日 5:06:34</span>
                                <span>点击0次</span>
                            </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://gitee.com/uploads/91/465191_vsdeveloper.jpg?1437703838">
						<div class="mui-media-body">
							<h1>木屋</h1>
							<p class='mui-ellipsis'>
                                <span>2018年7月22日 5:06:34</span>
                                <span>点击0次</span>
                                </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://gitee.com/uploads/91/465191_vsdeveloper.jpg?1437703838">
						<div class="mui-media-body">
							<h1>木屋</h1>
							<p class='mui-ellipsis'>
                                <span>2018年7月22日 5:06:34</span>
                                <span>点击0次</span>
                                </p>
						</div>
					</a>
				</li>
			</ul>
    </div>
</template>

<style scoped>
    h1{font-size:14px;}
    .mui-ellipsis{
        font-size:12px;
        color:orange;
        display:flex;
        justify-content: space-between;
    }
</style>

<script>
import { Toast } from "mint-ui";
export default {
    data(){
        return{
            newlist:'',
        }
    },
    created(){
        this.getNewlist();
    },
    methods:{
        getNewlist(){
            this.$http.get("http://localhost/Thinkphp/index.php/home/huyu").then(result => {
                if(result.body.status){
                    this.newlist = result.body.message;
                }else{
                    Toast('新闻列表获取失败..');
                }
            });
        }
    }
}
</script>
